isPdfViewerEnabled

abstract fun isPdfViewerEnabled(): Boolean

Indicates whether the built-in PDF viewer is enabled or not. This setting controls how JxBrowser handles navigations to web pages embedding PDF documents. When the PDF viewer is enabled, then the PDF document will be displayed in the PDF viewer. Otherwise, the engine will download the PDF document, like any other resource that cannot be rendered in the browser. The download can be configured via the StartDownloadCallback.

Changing this setting affects only subsequent navigations and does not affect the already loaded web pages.

By default, the PDF viewer is enabled.

Since

7.9

Throws

when its profile is closed